<!-- 头部 -->
<include file="Common:header"/>
<script>
    function tagSreach(tagid, starid) {
        $.getJSON('__URL__/ajaxTagGoods', {tagid: tagid, starid: starid}, function (json) {
            if (json.status == 1) {
                $('#wrap').html();
                $('#goodlist').html(json.data);
            }
        });
    }
</script>
<script type="text/javascript" src="__PUBLIC__/Js/pb.js"></script>
<!-- 明星介绍 -->
<input type="hidden" id="publcon" value='{$html}'>
<div class="white_wrap middle">
    <div class="star_content">
        <div class="star_top">
            <h1 class="floatleft">{$starinfo['chinese_name']}</h1>
        </div>
        <div class="star_con">
            <div class="star_avatar floatleft">
                <a href="" class="avatar_link"><img src="__PUBLIC__/Uploads/Star/220_{$starinfo['photo']}"/></a>
                <ul class="record">
                    <li class="fans"><span class="num">{$starinfo['fans_num']}</span><span>粉丝</span></li>
                    <li class="baobei">
                        <a href="" target="_blank" title="宝贝"><span class="num">{$count}</span><span>宝贝</span></a>
                    </li>
                </ul>
                <div class="follow_star_div" sid="1fi0" type="all"><a class="addfo" href="javascript:;" title="关注">关注</a></div>
            </div>
            <div class="star_detail floatleft">
                <dl>
                    <dt>地区：</dt>
                    <dd>
                        <if condition="$starinfo['area'] eq 1">大陆
                            <else/>
                            港台
                        </if>
                    </dd>
                    <dt>生日：</dt>
                    <dd>{$starinfo['birthday']}</dd>
                    <dt>星座：</dt>
                    <dd>{$starinfo['constellation']}</dd>
                    <dt>身高：</dt>
                    <dd>{$starinfo['height']}cm</dd>
                    <dt>体重：</dt>
                    <dd>{$starinfo['weight']}kg</dd>
                    <dt>血型：</dt>
                    <dd>{$starinfo['blood_type']}型</dd>
                    <dt>简介：</dt>
                    <dd>
                        <span class="des_mini">{$starinfo['intro']|msubstr=0,120,'utf-8',true}<a href="javascript:;" class="all">查看全部</a></span>
                        <span class="des_all" style="display:none;">高圆圆，中国女演员，出生于北京一个普通的知识分子家庭。1996年，还在上高中的她，在王府井逛街时被一位广告公司员工发掘，拍摄了自己的第一条广告。随后的几年间，她拍摄了大量广告，成为了广告圈中的知名模特儿。2000年，奥运会期间频频在电视上播出的清嘴含片广告让她为大家所熟知，人们一度称她为"清嘴女孩"。1997年，高圆圆出演了她的第一部电影，从此开始了她的演员生涯。近几年，高圆圆开始活跃在时尚圈，各大时尚杂志的封面她都是常客。<a
                                href="javascript:;" class="close">收起</a></span>

                        <p class="out_link">
                            <span class="title floatleft">新浪微博：</span>
                            <span class="link floatleft"><a href="{$starinfo['weibo_address']}"
                                                            title="{$starinfo['weibo_address']}" target="_blank">{$starinfo['weibo_address']}</a></span>
                        </p>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
</div>

<!-- 排序-->
<div class="category_sort_all">
    <div class="sort_list_show floatleft">
        <h3 class="sort_list_title floatleft">{$starinfo['chinese_name']}的同款宝贝</h3>

        <div class="floatleft sort_order">
            <span class="sort_span">排序：</span>
            <ul>
                <li class="category_sort_l"><a href="/star/1fjo/1/pop?tagId=#tagname" rel="nofollow"><i></i><span
                        title="潮流">潮流</span></a></li>
                <li class="category_sort_c"><a href="/star/1fjo/1/new?tagId=#tagname" rel="nofollow"><span
                        title="最新">最新</span><i></i></a></li>
                <li class="category_sort_r" style="margin-left:-1px;"><a class="c"
                                                                         href="/star/1fjo/1/hot30day?tagId=#tagname"
                                                                         rel="nofollow"><span title="30天最热">30天最热</span><i></i></a>
                </li>
            </ul>
        </div>
    </div>
</div>

<!-- 瀑布流宝贝 -->
<div id="wrap" class="wrap">
    <div id="WaterContainer" class="container">
        <div class="listBox">
            <div class="listCon white">
                <div class="star_tags">
                    <h3>她的热门标签</h3>
                    <ul class="tag_list clearfix">
                        <li><a href="#_" title="全部" onclick="tagSreach('all',{$starinfo['id']})" class="c">全部</a></li>
                        <volist name="tagsinfo" id="vo">
                            <li><a href="#_" onclick="tagSreach({$vo.id},{$vo.star_id})" title="{$vo['tags_name']}"
                                   customclass="29">{$vo['tags_name']}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div id="goodlist">
            <volist name="goodsinfo" id="vo">
                <div class="listBox">
                    <div class="listCon white">
                        <div class="bigPic">
                            <a href="__APP__/Goods/index/goods_id/{$vo['goods_code']}" target="_blank"><img
                                    src="__PUBLIC__/Uploads/Goods/220_{$vo['goods_photo_add']}" onmouseout="OnMouseOut({$vo['goods_code']})" onmouseover="OnMouseOver({$vo['goods_code']})" ></a>

                            <div class="price"><em>¥&nbsp;</em>{$vo['goods_price']}.00</div>
                        </div>
                        <div class="likeAndComment">
                            <a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>{$vo['goods_like_num']}</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">{$vo['com_count']}</a></span>
                        </div>
						<if condition="$vo.com_count neq 0">
                        <div class="info clearfix">
                            <div class="userPic"><a href="" target="_blank"><img class="rank" src="__PUBLIC__/Uploads/Photo/{$vo['com_user_code']}_64.jpg" width="30" height="30"></a>
                            </div>
                            <div class="userDetail"><a href="" target="_blank" class="nick">{$vo['com_user_name']}</a><span
                                    class="bg isBought"></span><br><a href="" target="_blank" class="c6">{$vo['com_content']}</a>
                            </div>
                        </div>
						</if>
                        <div class="addAbum" id="{$vo['goods_code']}" onmouseout="OnMouseOut({$vo['goods_code']})" onmouseover="OnMouseOver({$vo['goods_code']})"  onclick="addwardrobe({$vo['goods_code']})"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
                    </div>
                    <div class="addzj" style="display: none">刚刚被淘友-<span>"<a href="" target="_blank" class="nick">美人鱼</a>"</span>-放入衣柜</div>
                    <div class="bg btm"></div>
                </div>
            </volist>
        </div>
    </div>
</div>

<!-- 分页 -->
<div id="page" style="display:none">
    {$page}
</div>

<script type="text/javascript">
function OnMouseOut(id){
	$('#'+id).css('display', 'none');
	return false;
}
function OnMouseOver(id){
	$('#'+id).css('display', 'block');
	return false;
}
function addwardrobe(id){
	showBoxBg();
	$.getJSON('__URL__/addWardRobe', {id:id}, function (json) {
		if (json.status == 1) {
			$('#add-wardrobe-text').html(json.data);
		}
	});
	showBox('#add-wardrobe');
}

function Wardrobe(good_code){
	var robe_name = $('#wardrobe').val();
	if( !robe_name ){
		alert('请添加衣柜名称');
		return false;
	}else{
		var html = '<div class="select-wardrobe-form" style="display:block">'+
						'<h1>您选择的衣柜：</h1>'+
						'<ul>'+
							'<li><input type="radio" name="wardrobe" value="" checked />'+robe_name+'</li>'+
						'</ul>'+
						'<a href="javascript:;" class="w60r" title="提交" onclick=saveWardrobe("'+robe_name+'",'+good_code+') style="margin-left:18px;">提交</a>'+
					'</div>';
		$('#add-wardrobe-text').html(html);
	}
}

function saveWardrobe(robe_name,good_code){
	$.getJSON('__URL__/saveWardrobe', {robe_name:robe_name,good_code:good_code}, function (json) {
		if (json.status == 1) {
			alert('放入成功');
			closeDialog('#add-wardrobe');
			closeBoxBg();
		}else{
			alert('放入失败');
			return false;
		}
	});
}
function saveWardrobe1(good_code){
	var type = 0;
	var id = $('#radio').val();
	var robe_name = $('.wardrobe-name').val();
	if(id){
		type = 1;
	}
	$.getJSON('__URL__/saveWardrobe', {robe_name:robe_name,good_code:good_code,type:type,id:id}, function (json) {
		if (json.status == 1) {
			alert('放入成功');
			closeDialog('#add-wardrobe');
			closeBoxBg();
		}else{
			alert('放入失败');
			return false;
		}
	});
	
}

    //前两次商品数量
    var j = 8;
    var opt = {
        getResource: function (index, render) {
            var num = 4;//每次加载多少张
            if ($('#publcon').val()) {
                $.getJSON('__URL__/ajaxPubl', {starpagenum: j, endpagenum: j + num}, function (json) {
                    if (json.status == 1) {
                        $('#publcon').val(json.data);
                    }
                });
            } else {
                $('#page').css('display', 'block');
            }
            j = j + num;
            return $($('#publcon').val());
        },
        auto_imgHeight: true,
        insert_type: 1
    }
	
    $('#wrap').waterfall(opt);

    
</script>
<div id="add-wardrobe" class="alert-wrap">
	<div class="alert-wrap-header"><i class="bg"></i>温馨提示&nbsp;</div>
    <!-- 一个衣柜都没有，进行添加 -->
    <div id="add-wardrobe-text"></div>
	<a class="close-alert-wrap bg" href="javascript:void(0)" onclick="closeDialog('#add-wardrobe')" title="关闭"></a>
</div>
<include file="Common:footer"/>
